<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=$pagedata["title"];?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="<?=$pagedata["keywords"];?>" name="Keywords" />
<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/thickbox.css" />
<link rel="stylesheet" rev="stylesheet" href="<?=gurl('css');?>/common.css" type="text/css" media="all" />
<link rel="stylesheet" rev="stylesheet" href="<?=gurl('css');?>/site.css" type="text/css" media="all" />
<script language="javascript" src="<?=gurl('js');?>/jq.js"></script>
<script language="javascript" src="<?=gurl('js');?>/thickbox-compressed.js"></script>
<script language="javascript" src="<?=gurl('js');?>/common.js"></script>
<script language="javascript" type="text/javascript" src="<?=gurl('js');?>/site.js"></script>
<link rel="Bookmark" href="<?=gurl('images');?>/favicon.ico" />
<link rel="Shortcut Icon" type="image/x-icon" href="<?=gurl('images');?>/favicon.ico" />
<? if ($siteskins["skincolor"] != ""):?>
<style type="text/css">
.column h3 a.left,.column .title a, .column .f14px a,.listCam .f14px a,.column .paged a,#pluginsarea h3 a,#pluginsarea .title a,.tit a,.w430 em a,.listPx_l li a,.listPx_r li a,.smallCon em a, .discusBox a, .discusCon a, .airList a, .grayBox a,.listCommunity a, .smallLogo .title, .smallLogo .edit, .smallLogin a, .smallMan a, .smallNav li .edit, .cc li a, .listTxt a{color:<?=$siteskins["skincolor"];?>!important;}
</style>
<? endif;?>
<? if ($siteskins["color"] != ""):?>
<style type="text/css">
#options li a:first-child{color:<?=$siteskins["color"];?>;}
</style>
<? endif;?>
</head>
<body style="padding:60px 0 0 0;<? if($siteskins["background"]):?>background:url(<?=gurl('data/upload_pic/'.$siteskins["background"]);?>) repeat-x left top<? endif;?>">

<div class="smallPage">
<!--head start-->
  	<div class="smallHeader">
  		<? if($site['certification'] == '1'):?>
  		<div class="smallwebIco"></div>
  		<? endif;?>
		<div class="renaoLogo"><a href="<?=gurl('/');?>"><img src="<?=gurl('images');?>/smallrenaologo.gif" alt="热闹网" /></a><a id="top" name="top">&nbsp;</a></div>
		<div class="smallLogo">
			<span class="listImg"><img class="blank" src="images/tran.gif"><a href="<?=c('site_url');?><?=$site['domain'];?>"><img alt="<?=$site["name"];?>" src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" width="60" height="60"></a></span>
						<span class="listTxt"><a href="<?=c('site_url');?><?=$site['domain'];?>" class="title"><?=$site["name"];?></a>&nbsp;<? if($isowner):?><a href="<?=c('site_url');?><?=$site["domain"];?>/setting" class="edit">(设置)</a><? endif;?>
						<em class="intr"><?=$site["info"]["description"];?></em>
			</span>
		</div>
		<div class="smallLogin">
			<? if($account):?><a href="<?=gurl('/');?>">首页</a><a href="<?=gurl('/hot');?>">推荐</a><a href="<?=gurl('/home/profile/'.$account["account_id"]);?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><? else:?><a href="<?=gurl('/');?>">热闹网</a><a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><? endif;?>
		</div>
		<div class="smallMan">
			站长：<a href="<?=gurl('/home/profile/'.$site['userid']);?>"><?=$owner["username"];?></a><br />
			分类：<a href="<?=gurl('/found/'.$parentclass['id']);?>"><?=$parentclass["name"];?></a> > <a href="<?=gurl('/found/'.$parentclass['id'].'/'.$currentclass['id']);?>"><?=$currentclass["name"];?></a>
		</div>
	</div>
	<div id="nav" class="smallNav" style="padding-left:18px; <? if ($siteskins["bannerbg"] != ""):?>background:url(<?=gurl('data/upload_pic/'.$siteskins["bannerbg"]);?>) repeat-x left top; <? endif;?>">
		<ul id="options" style="float:left;">
			<? 
			   $selectedopid = $opid;
			   if($current_opid > 0) {
			   	$selectedopid = "-1";
			   }
			?>
			<? foreach($options as $k => $option):?>
				<li <? if($option["id"] == $selectedopid || ($current_opid >0 && $current_opid == $option["id"])):?> class="opcurrent" <? endif;?>><a <? if($k == 0):?> id="style_a" <? endif;?> href="<?=c('site_url');?><?=$site['domain'];?>/options/<?=$option['id'];?>" <? if ($siteskins["color"] != ""):?> style="color:<?=$siteskins["color"];?>" <? endif;?>><?=$option["opname"];?></a><? if($isowner && $opid > 0 && $option["id"] == $opid && $action == "options"):?> <a href="javascript:void(0);" onclick="aj_showedit_options();" class="edit">编辑选项</a><? endif;?></li>
			<? endforeach;?>
		</ul>
		<ul style="float:left; padding:0;">
			<li <? if($action == "forum"):?> class="opcurrent" <? endif;?>><a href="<?=c('site_url');?><?=$site['domain'];?>/forum" <? if ($siteskins["color"] != ""):?> style="color:<?=$siteskins["color"];?>" <? endif;?>>社区</a></li>
			<li <? if($action == "miniblog"):?> class="opcurrent" <? endif;?> style="padding-right:15px;"><a href="<?=c('site_url');?><?=$site['domain'];?>/miniblog" <? if ($siteskins["color"] != ""):?> style="color:<?=$siteskins["color"];?>" <? endif;?>>站长频道</a></li>
			<? if($isowner):?><li style="position:relative;"><a class="f22px" href="javascript:void(0);" onclick="aj_add_options(<?=$site['id'];?>, '<?=c('site_url');?><?=$site['domain'];?>/options/');"><b  <? if ($siteskins["color"] != ""):?> style="color:<?=$siteskins["color"];?>" <? endif;?>>+</b></a><div id="banner_msg" class="tips">&nbsp;</div>
			<? if($site['hidetips'] == '0'):?>
			<div id="addoptips" style="position:absolute; z-index:999; left:-21px; top:25px;width:131px; height:64px;background:url('/images/noticemsg.png');font-size:14px;">
			<a href="javascript:void(0);" onclick="aj_save_sitetips(<?=$site['id'];?>);" style="background:url('/images/noticeclose.jpg') no-repeat; width:8px;text-indent:-999px;overflow:hidden;position:absolute;left:118px;top:20px;">关闭</a>
				<div style="margin-top:18px; margin-left:10px;line-height:20px;">
					按+添加新选项
					<em style="display:block;"><a href="javascript:void(0);" onclick="aj_save_sitetips(<?=$site['id'];?>);" style="font-size:12px;color:#5A9ECE;">我知道了</a></em>
				</div>
			</div>
			<? endif;?>
			</li><? endif;?>
		</ul>
		
		<div class="hackbox"></div>
	</div>
<!--head end-->
<!--记录访客JS调用-->
<script language="javascript" src="<?=gurl('site_statis/visit_record/'.$site["id"]);?>"></script>